package priv.yiyuan.example.design.wrapper;

/**
 * 装饰器基类
 *
 * @author YiYuan
 * @data 2025/9/1
 * @apoNote
 */
public abstract class GraphicDecorator implements Graphic {

    protected Graphic decoratedGraphic;

    public GraphicDecorator(Graphic decoratedGraphic) {
        this.decoratedGraphic = decoratedGraphic;
    }

    @Override
    public void draw() {
        decoratedGraphic.draw();
    }

    @Override
    public abstract Graphic clone();
}
